package cn.itsource.ymcc.service;

import cn.itsource.ymcc.domain.Course;
import cn.itsource.ymcc.dto.CourseDto;
import cn.itsource.ymcc.vo.CourseDetailInfoVo;
import cn.itsource.ymcc.vo.CourserOrderVo;
import com.baomidou.mybatisplus.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author whale.chen
 * @since 2022-07-20
 */
public interface ICourseService extends IService<Course> {

    void save(CourseDto dto);

    void onLineCourse(Long courseId);
    void offLineCourse(Long courseId);

    CourseDetailInfoVo searchCourseDetail(Long courseId);

    void batchOffLineCourse(List<Long> ids);

    void batchOnLineCourse(List<Long> ids);

    CourserOrderVo courserOrderVo(String courseIds);
}
